package gui.catalogues.persons;

import gui.commons.IdText;

import java.util.EventObject;

public class PersonDTO extends EventObject {

	/*
	 * Variables declaration
	 */
	private String name, surname;
	private IdText itCollateralClient;
	private boolean isChkIndirectClient;

	// the source is going to be the PersonFormPanel
	public PersonDTO(Object source) {
		super(source);
	}

	// Will overload the constructor
	public PersonDTO(Object source, String name, String surname,
			IdText idCollateralClient, boolean isChckIndirectClient) {
		super(source);
		this.name = name;
		this.surname = surname;
		this.itCollateralClient = idCollateralClient;
		this.isChkIndirectClient = isChckIndirectClient;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the surname
	 */
	public String getSurname() {
		return surname;
	}

	/**
	 * @param surname
	 *            the surname to set
	 */
	public void setSurname(String surname) {
		this.surname = surname;
	}

	/**
	 * @return the itCollateralClient
	 */
	public IdText getItCollateralClient() {
		return itCollateralClient;
	}

	/**
	 * @param itCollateralClient
	 *            the itCollateralClient to set
	 */
	public void setItCollateralClient(IdText itCollateralClient) {
		this.itCollateralClient = itCollateralClient;
	}

	/**
	 * @return the isChkIndirectClient
	 */
	public boolean isChkIndirectClient() {
		return isChkIndirectClient;
	}

	/**
	 * @param isChkIndirectClient
	 *            the isChkIndirectClient to set
	 */
	public void setChkIndirectClient(boolean isChkIndirectClient) {
		this.isChkIndirectClient = isChkIndirectClient;
	}

}